import React, { FC, useState } from "react"
import { Pagination } from "antd"
import { LIST_PAGE_SIZE } from "../constant"

type PropsType = {
  total: number
}

const ListPage: FC<PropsType> = (props: PropsType) => {
  const { total } = props
  const [current, setCurrent] = useState(1)
  const [pageSize, setPageSize] = useState(LIST_PAGE_SIZE)
  return <Pagination defaultCurrent={1} total={total}></Pagination>
}

export default ListPage
